package com.disapand.strongarmy.model

import org.ktorm.database.*
import org.ktorm.entity.*
import org.ktorm.schema.*

/**
 *
 * @auth disapand
 * @date 2021/11/3 - 16:13 - 星期三
 *
 */
object AccountRoles : Table<Nothing>("sa_account_role") {
    val id = int("id").primaryKey()
    val account = int("account_id")
    val role = int("role_id")
    val status = int("status")
    val deleted = boolean("deleted")
    val createdBy = int("created_by")
    val createdAt = datetime("created_at")
    val updatedBy = int("updated_by")
    val updatedAt = datetime("updated_at")
}

val Database.accountRoles get() = this.sequenceOf(AccountRoles)